package com.company.Thread;

/**
 * @ProjectName: 复习java
 * @Package: com.company.Thread
 * @ClassName: TestThread
 * @Author: wym
 * @Date: 2020/8/4 17:45
 * @Version: 1.0
 */
public class TestThread  implements  Runnable{

    @Override
    public void run() {
        for (int i = 0; i < 100; i++) {
            System.out.println(" ti"+i);
        }
    }

    public static void main(String[] args) {
        Thread t1=new Thread(new TestThread());
        t1.start();
        //强制执行 join:
    }

//    class Test1 extends  Thread{
//        @Override
//        public void run() {
//
//        }
//    }
}
